package com.one.mapper;

import com.one.pojo.Land;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LandMapper {
    int deleteByPrimaryKey(String id);

    int insert(Land record);

    int insertSelective(Land record);

    Land selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Land record);

    List<Land> findByChickenfarmId(String chickenfarmId);

    List<Land> findByChickenfarmIdAndCollectFlag(@Param("chickenfarmId")String chickenfarmId,@Param("collectFlag")String collectFlag);

    Land findByChickenfarmIdAndLandId(@Param("chickenfarmId") String chickenfarmId, @Param("landId") String landId);

    int updateByPrimaryKey(Land record);
}